package com.sxf.dao;

import java.util.List;

import com.sxf.controller.formbean.TermVO;
import com.sxf.domain.Term;
import com.sxf.mybatis.page.Pagination;
import com.sxf.querybean.TermQuery;

public interface TermDAO {
	/**
	 * @param termQuery
	 * @param queryMode
	 *            查询模式(具体看Constan常量)
	 * @return
	 */
	public Pagination<TermVO> queryPage(TermQuery query);

	public TermVO queryOne(TermQuery query);

	public List<TermVO> queryList(TermQuery query);

	public long queryNumber(TermQuery query);

	public int insert(Term term);

	public int update(Term term);

	public int delete(Term term);
}
